<?php
// file_put_contents("/home/www/a.tttj.3z.cc/cache/catlog.txt",$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']."\r\n",FILE_APPEND);
signcheck(array($appid.$imei.$pt));
$ctype = $_GET['ctype'];
if ($ctype == 'nine')
{
	echo echojson('success',1,array());exit;
}	
if (isSHB())
{
	$wheresql = " and id not in(6,17) ";
} 
$type = (int)$_GET['type'] ? (int)$_GET['type'] : 1;
$appid = 98;
$sql = "select id,category_name,icon from tttj.category where find_in_set('$pt',pts) and dstatus=1 and type=$type $wheresql order by position asc,id desc";
$res = exec_db($sql);
while ($row = mysqli_fetch_assoc($res))
{
	$list[] = $row;
}

$list = empty($list) ? array() : $list;
echo echojson('success',1,$list);
?>

